dump_syms="${1}/tool/MacOS/dump_syms"
plugin="${2}/${3}.app/Contents/Frameworks/plugins/lib${4}.1.dylib"
dSYM="${2}/${3}.app/Contents/Frameworks/plugins/lib${4}.1.dylib.dSYM"
sym="${2}/${3}.app/Contents/MacOS/crashpad/syms/${4}.sym"
final_dSYM="${2}/${3}.app/Contents/MacOS/crashpad/syms/lib${4}.1.dylib.dSYM"

echo "${dump_syms} -g ${dSYM} ${plugin} > ${sym}"
eval "cp -r ${dSYM} ${final_dSYM}"
eval "${dump_syms} -g ${dSYM} ${plugin} > ${sym}"

